/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author Cyrax
 */
@Entity
@Table(name = "AboutUs", catalog = "EasyTickets", schema = "dbo")
@NamedQueries({
    @NamedQuery(name = "AboutUs.findAll", query = "SELECT a FROM AboutUs a"),
    @NamedQuery(name = "AboutUs.findByAbID", query = "SELECT a FROM AboutUs a WHERE a.abID = :abID")})
public class AboutUs implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "AbID", nullable = false)
    private Integer abID;
    @Lob
    @Column(name = "Content", length = 1073741823)
    private String content;

    public AboutUs() {
    }

    public AboutUs(Integer abID) {
        this.abID = abID;
    }

    public Integer getAbID() {
        return abID;
    }

    public void setAbID(Integer abID) {
        this.abID = abID;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (abID != null ? abID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AboutUs)) {
            return false;
        }
        AboutUs other = (AboutUs) object;
        if ((this.abID == null && other.abID != null) || (this.abID != null && !this.abID.equals(other.abID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entity.AboutUs[abID=" + abID + "]";
    }

}
